package cn.tfyhyc.springcloud.service;

import cn.tfyhyc.springcloud.entities.CommonResult;
import cn.tfyhyc.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author 头发又黑又长
 * @Date 2022/10/28 16:00
 * @email zwb15083976291@163.com
 */
@Component
public class PaymentServiceImpl implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444, "服务降级返回,---PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
